package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.SnowflakeIdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.BroadcastMapper;
import com.ruoyi.control.domain.Broadcast;
import com.ruoyi.control.service.IBroadcastService;

/**
 * 广播基站Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-15
 */
@Service
public class BroadcastServiceImpl extends ServiceImpl<BroadcastMapper, Broadcast> implements IBroadcastService //修改
{
    @Autowired
    private BroadcastMapper broadcastMapper;

    /**
     * 查询广播基站
     * 
     * @param id 广播基站主键
     * @return 广播基站
     */
    @Override
    public Broadcast selectBroadcastById(String id)
    {
        return broadcastMapper.selectBroadcastById(id);
    }

    /**
     * 查询广播基站列表
     * 
     * @param broadcast 广播基站
     * @return 广播基站
     */
    @Override
    public List<Broadcast> selectBroadcastList(Broadcast broadcast)
    {
        return broadcastMapper.selectBroadcastList(broadcast);
    }

    /**
     * 新增广播基站
     * 
     * @param broadcast 广播基站
     * @return 结果
     */
    @Override
    public int insertBroadcast(Broadcast broadcast)
    {
        return broadcastMapper.insertBroadcast(broadcast);
    }

    /**
     * 修改广播基站
     * 
     * @param broadcast 广播基站
     * @return 结果
     */
    @Override
    public int updateBroadcast(Broadcast broadcast)
    {
        return broadcastMapper.updateBroadcast(broadcast);
    }

    /**
     * 批量删除广播基站
     * 
     * @param ids 需要删除的广播基站主键
     * @return 结果
     */
    @Override
    public int deleteBroadcastByIds(String[] ids)
    {
        return broadcastMapper.deleteBroadcastByIds(ids);
    }

    /**
     * 删除广播基站信息
     * 
     * @param id 广播基站主键
     * @return 结果
     */
    @Override
    public int deleteBroadcastById(String id)
    {
        return broadcastMapper.deleteBroadcastById(id);
    }
}
